<template>
  <div class="foot">
    <router-link :to="{path:'/'}" tag="div" :class="{action:num==1}">
      <i class="el-icon-s-home"></i>
      <span>首页</span>
    </router-link>
    <router-link :to="{name: 'Faxian'}" tag="div" :class="{action:num==2}">
      <i class="el-icon-s-promotion"></i>
      <span>发现</span>
    </router-link>
    <router-link :to="{name:'Fabu'}" tag="div" :class="{action:num==3}">
      <i class="el-icon-camera"></i>
      <span>发布</span>
    </router-link>
    <router-link :to="{name:'Collection'}" tag="div" :class="{action:num==4}">
      <i class="el-icon-star-on"></i>
      <span>收藏</span>
    </router-link>
    <router-link :to="{name:'Mypage'}" tag="div" :class="{action:num==5}">
      <i class="el-icon-user-solid"></i>
      
      <span>我的</span>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "Foot",
  props: ['num']
};
</script>

<style lang="scss" scoped>
.foot {
  padding-top: 13px;
  padding-bottom: 5px;
  position: fixed;
    background-color: white;
  border-top: 1px solid rgb(211, 209, 209);
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  text-align: center;
  color: rgb(143, 142, 142);
  > div {
    display: flex;
    flex-direction: column;
    > i {
      font-size: 25px;
    }
  }
}
.action{
    color: rgb(51, 180, 255);
}
</style>